package com.charlotte.study.gupao.composite.safe;

import java.util.ArrayList;
import java.util.List;

/**
 * @author junjie.ding
 * @date 2020/3/10
 */
public class Folder extends Directory {

    private List<Directory> dirs;

    private Integer level;


    public Folder(String name, Integer level) {
        super(name);
        this.level = level;
        this.dirs = new ArrayList<>();
    }

    public void add(Directory item){
        this.dirs.add(item);
    }

    public void remove(Directory item){
        this.dirs.remove(item);
    }


    @Override
    public void show() {

    }
}
